<?php

class lib_sql_convert {

    const SINGLE_QUOTES = '&squo;';

    public function __construct() {
    }

    public static function get_converted_string($sql_string) {
        return str_replace("'", self::SINGLE_QUOTES, $sql_string);
    }
    
    public static function get_sql_string($converted_string) {
        return str_replace(self::SINGLE_QUOTES, "'", $converted_string);
    }
}
